package com.company.project.service;
import com.company.project.model.Periodicals;
import com.company.project.core.Service;
import com.company.project.util.AdminPAndPCRAndDBRAndPE;
import com.company.project.util.PageUtil;
import com.company.project.util.periodicalsWhere;

import java.util.List;
import java.util.Map;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
public interface PeriodicalsService extends Service<Periodicals> {
    /**
     * 根据期刊查询
     * @return
     */
    PageUtil<Map<Object,Object>> queryPM(String cname,Integer index);
    Integer queryCount(String cname);
    //根据条件获取期刊
    PageUtil<Periodicals> getPeriodicalsByWhere(periodicalsWhere pw,Integer index);
    //根据id获取期刊详情
    Periodicals selectPeriodicalsById(String id);

    Integer getCount(periodicalsWhere pw);

    //获取全部优秀期刊，分页
    PageUtil<Periodicals> selectPeriodicalsExcellence(Integer pageIndex);

    //首页优秀期刊轮播
    List<Periodicals> getPeriodicalsExcellenceImg();

    String getPeriodicalsName(Integer id);

    //后台查询期刊
    Map<String,Object> adminGetPeriodicalsList(Integer pageIndex);

    //后台单个查询期刊
    Periodicals adminGettPeriodicals(Integer id);

    //后台查询总条数
    Integer adminGetPeriodicalsCount();

    //后台添加
    boolean adminAddPeriodicals(AdminPAndPCRAndDBRAndPE pde);

    //后台修改
    boolean adminUpdatePeriodicals(AdminPAndPCRAndDBRAndPE pde);

    //后台删除
    boolean adminDelectPeriodicals(Integer id);

    //期刊评估查询
    List<Periodicals> getPeriodicals(List<String> pnameList);

    //后台修改期刊状态
    boolean adminUpdateStatus(Periodicals periodicals);

}
